package com.yanfan.maintain.domain;

import com.yanfan.common.annotation.Excel;
import com.yanfan.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 【请填写功能名称】对象 control_rule
 *
 * @author kerwincui
 * @date 2023-03-16
 */
public class ControlRule extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 设备id
     */
    @Excel(name = "设备id")
    private Long deviceId;

    /**
     * 群控模型id
     */
    @Excel(name = "群控模型id")
    private Long formworkId;

    /**
     * 分类code
     */
    @Excel(name = "分类code")
    private String categoryCode;

    /**
     * 分类名称
     */
    @Excel(name = "分类名称")
    private String categoryName;

    /**
     * 参数code
     */
    @Excel(name = "参数code")
    private String paramCode;

    /**
     * 参数名称
     */
    @Excel(name = "参数名称")
    private String paramName;

    /**
     * 条件code
     */
    @Excel(name = "条件code")
    private String conditionCode;

    /**
     * 条件名称
     */
    @Excel(name = "条件名称")
    private String conditionName;

    /**
     * 判断数值
     */
    @Excel(name = "判断数值")
    private Long judgeNumber;

    /**
     * 设备名称
     */
    @Excel(name = "设备名称")
    private String deviceName;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public Long getFormworkId() {
        return formworkId;
    }

    public void setFormworkId(Long formworkId) {
        this.formworkId = formworkId;
    }

    public String getCategoryCode() {
        return categoryCode;
    }

    public void setCategoryCode(String categoryCode) {
        this.categoryCode = categoryCode;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getParamCode() {
        return paramCode;
    }

    public void setParamCode(String paramCode) {
        this.paramCode = paramCode;
    }

    public String getParamName() {
        return paramName;
    }

    public void setParamName(String paramName) {
        this.paramName = paramName;
    }

    public String getConditionCode() {
        return conditionCode;
    }

    public void setConditionCode(String conditionCode) {
        this.conditionCode = conditionCode;
    }

    public String getConditionName() {
        return conditionName;
    }

    public void setConditionName(String conditionName) {
        this.conditionName = conditionName;
    }

    public Long getJudgeNumber() {
        return judgeNumber;
    }

    public void setJudgeNumber(Long judgeNumber) {
        this.judgeNumber = judgeNumber;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("deviceId", getDeviceId())
                .append("formworkId", getFormworkId())
                .append("categoryCode", getCategoryCode())
                .append("categoryName", getCategoryName())
                .append("paramCode", getParamCode())
                .append("paramName", getParamName())
                .append("conditionCode", getConditionCode())
                .append("conditionName", getConditionName())
                .append("judgeNumber", getJudgeNumber())
                .append("deviceName", getDeviceName())
                .toString();
    }
}
